package com.example.demo.user;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UController {

    @RequestMapping(value = "/user",method = RequestMethod.GET)
    public String get(){
        return "get user";
    }

    @RequestMapping(value = "/user",method = RequestMethod.PUT)
    public String put(){
        return "put user";
    }

    @RequestMapping(value = "/user",method = RequestMethod.POST)
    public String post(){
        return "post user";
    }

    @RequestMapping(value = "/user",method = RequestMethod.DELETE)
    public String delete(){
        return "delete user";
    }
}
